package cn.edu.scau.cmi.wangmaoren.client.spring;

import cn.edu.scau.cmi.wangmaoren.spring.domain.Student;
import cn.edu.scau.cmi.wangmaoren.spring.domain.Teacher;


//本例子不使用Spring，所有的对象都需要业务显式封装
public class Spring01OrdinaryClient
{
	private static Teacher liangzaoqing;
	private static Student zhangsan;

	public Spring01OrdinaryClient()
	{
	}

	public static void main(String[] args)
	{
		prepareBeforeDebate();// graduate debate.
		System.out.println(zhangsan.getName() + "的毕业设计指导导师是：" + zhangsan.getTutor().getName());
	}

	private static void prepareBeforeDebate()
	{
		liangzaoqing = new Teacher();
		liangzaoqing.setName("梁早清");
		liangzaoqing.setGendar("男");

		zhangsan = new Student();
		zhangsan.setName("张三");
		zhangsan.setGendar("男");
		zhangsan.setTutor(liangzaoqing);
	}
}
